ReadOnceAsync(DataReferenceSource[],CancellationToken) Method
Read the runtime data once asynchronously with Cancellation token.
Note: the default timeout of 30 seconds applied by the system.
Syntax
'Declaration Public Overloads MustOverride Function ReadOnceAsync( _ ByVal dataReferenceSources() As DataReferenceSource, _ ByVal cancellationToken As CancellationToken _ ) As Task(Of VTQ())
'Usage Dim instance As DataSubscription Dim dataReferenceSources() As DataReferenceSource Dim cancellationToken As CancellationToken Dim value As Task(Of VTQ()) value = instance.ReadOnceAsync(dataReferenceSources, cancellationToken)
public abstract Task<VTQ[]> ReadOnceAsync( DataReferenceSource[] dataReferenceSources, CancellationToken cancellationToken )
public: abstract Task<array<VTQ^>>^ ReadOnceAsync( array<DataReferenceSource^>^ dataReferenceSources, CancellationToken cancellationToken )
Parameters
- dataReferenceSources
- The data reference source array
- cancellationToken
- The cancellation token used to cancel the read operation
Return Value
The VTQ array of the references
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also